package com.haiheng.common.api

import com.haiheng.library_base.http.BaseUrlAdapter
import com.haiheng.library_base.http.Domain
import java.util.HashMap

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2022/6/2 0002
 * @Version: 1.0
 */
class MyBaseUrlAdapter : BaseUrlAdapter {
    override fun getDefaultBaseUrl(): String {
        return API.getBaseUrl()
    }

    override fun getAppendBaseUrl(): Map<String, String> {
        val baserUrl: MutableMap<String, String> = HashMap()
        baserUrl[Domain.VALUE_DEFUlT] = API.getBaseUrl()
        baserUrl[Domain.VALUE_ACS] = API.getAcsUrl()
        baserUrl[Domain.VALUE_FACE] = API.getFaceUrl()
        baserUrl[Domain.VALUE_ISBN] = API.getIsbnUrl()

        return baserUrl
    }
}